home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 2005 July / Macworld CD 17.05.iso / Data / Main.dxr / 00090_common Rollover-ORIG.ls < prev    next >
Encoding:
Text File  |  2000-02-28  |  511 b   |  19 lines

  1. property meS, memName
  2.  
  3. on new me
  4.   return me
  5. end
  6.  
  7. on beginSprite me
  8.   meS = me.spriteNum
  9.   memName = member(the memberNum of sprite meS).name
  10. end
  11.  
  12. on exitFrame me
  13.   if (the mouseH >= the left of sprite meS) and (the mouseH <= the right of sprite meS) and (the mouseV >= the top of sprite meS) and (the mouseV <= the bottom of sprite meS) then
  14.     set the memberNum of sprite meS to the number of member (memName && "roll")
  15.   else
  16.     set the memberNum of sprite meS to the number of member memName
  17.   end if
  18. end
  19.